	<table class="table">
	   <tr>
	      <th>Id</th>
	      <th>N°Serie</th>
	      <th>Nom de machine</th>
	      <th>Adresse IP</th>
	      <th>Salle</th>
		  <th>Afficher</th>
		  <th>Editer</th>
		  <th>Supprimer</th>
	   </tr>
	
	   <% @machines.each do |machine| %>
	      <tr>
	         <td><%=h machine.id %></td>
	         <td><%=h machine.serial_number %></td>
	         <td><%=h machine.machine_name %></td>
		     <td><%=h machine.ip_adr %></td>
		     <td><%=h machine.room.room_name %></td>
		     <td><%= link_to image_tag("show.png"), machine %></td>
		     <td><%= link_to image_tag("edit.png"), edit_machine_path(machine) %></td>
		     <td><%= link_to image_tag("delete.png"), machine, :confirm => 'Confirmer Suppression? Cela supprimera les statistiques', :method => :delete %></td>
	  	  </tr>
	   <% end %>
	</table>


